<?php
namespace Home\Controller;
use Think\Controller;
class LayoutController extends Controller{
	function layout(){
		if (IS_LOGIN) {
			session('userName','null');
			session('[destroy]');
			$this->success('退出成功',U('User/login'));
		}else{
			$this->redirect('User/login');
		}
	}
}
?>